<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href='<?php echo base_url(); ?>/css/newList.css' type="text/css" media="screen, projection" />
<title></title>
</head>
	<script  type="text/javascript">
	function addnews(src)
{
	window.top.frames['manFrame'].location.href = src
}
	function updatenews(src)
{
	window.top.frames['manFrame'].location.href = src
}
	function deletenews(src)
{
	confirm('确定要删除此条新闻吗？','提示',16)
	window.top.frames['manFrame'].location.href = src
}
	</script>
<body>
		<table width="99%">
		<tr>
			<td width="100%" style="text-align:center;">	<input type="button" value="添加新闻" onclick="addnews('<?php echo base_url(); ?>News_add?newsid=0&sign=add')"></input></td>
		</tr>
		<tr>
			<td width="100%" style="text-align:center;"><h1><?php echo $MenuEntity[0]->TypeName;?></h1></td>
		</tr>
	</table>
	<table width="99%" border="1" align="center"  cellpadding="3" cellspacing="1">
	<tr>
		<td ></td>
		<td></td>
		<td width="42%">标题</td>
		<td width="38%">来源</td>
		<td width="8%">排序号</td>
	</tr>

<?php 
	foreach($results as $value)
	{
		echo "<tr>
				<td width=\"5px\"><input type=\"button\" value=\"修改\" onclick=\"updatenews('".base_url()."News_add?newsid=".$value->NewsID."&sign=update')\"></input></td>
			      <td width=\"5px\"><input type=\"button\" value=\"删除\" onclick=\"deletenews('".base_url()."News/delete?NewsID=".$value->NewsID."')\"></input></td>
			      <td width=\"42%\">".$value->Title."</td>
			      <td width=\"38%\">".$value->NewsSource."</td>
			      <td width=\"8%\">".$value->OrderNum."</td>
		      </tr>";
	}
?>
</body>
</html>